<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.masonry.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.infinitescroll.js"></script>
<script type="text/javascript" src="{:U('weibo/plugins/init')}"></script>

<style type="text/css">
<!--

.wrap { margin: auto;width:982px;}

-->
</style>
<script type="text/javascript">
$(function(){

	var sWidth = $("#focus").width(); //获取焦点图的宽度（显示面积）
	var len = $("#focus ul li").length; //获取焦点图个数
	var index = 0;
	var picTimer;
	
	//以下代码添加数字按钮和按钮后的半透明条，还有上一页、下一页两个按钮
	var btn = "<div class='btnBg'></div><div class='btn'>";
	for(var i=0; i < len; i++) {
		btn += "<span></span>";
	}
	btn += "</div>";
	$("#focus").append(btn);
	$("#focus .btnBg").css("opacity",0.5);

	//为小按钮添加鼠标滑入事件，以显示相应的内容
	$("#focus .btn span").css("opacity",0.4).mouseenter(function() {
		index = $("#focus .btn span").index(this);
		showPics(index);
	}).eq(0).trigger("mouseenter");

	//上一页、下一页按钮透明度处理
	$("#focus .preNext").css("opacity",0.2).hover(function() {
		$(this).stop(true,false).animate({"opacity":"0.5"},300);
	},function() {
		$(this).stop(true,false).animate({"opacity":"0.2"},300);
	});

	//上一页按钮
	$("#focus .pre").click(function() {
		index -= 1;
		if(index == -1) {index = len - 1;}
		showPics(index);
	});

	//下一页按钮
	$("#focus .next").click(function() {
		index += 1;
		if(index == len) {index = 0;}
		showPics(index);
	});

	//本例为左右滚动，即所有li元素都是在同一排向左浮动，所以这里需要计算出外围ul元素的宽度
	$("#focus ul").css("width",sWidth * (len));
	
	//鼠标滑上焦点图时停止自动播放，滑出时开始自动播放
	$("#focus").hover(function() {
		clearInterval(picTimer);
	},function() {
		picTimer = setInterval(function() {
			showPics(index);
			index++;
			if(index == len) {index = 0;}
		},4000); //此4000代表自动播放的间隔，单位：毫秒
	}).trigger("mouseleave");
	
	//显示图片函数，根据接收的index值显示相应的内容
	function showPics(index) { //普通切换
		var nowLeft = -index*sWidth; //根据index值计算ul元素的left值
		$("#focus ul").stop(true,false).animate({"left":nowLeft},300); //通过animate()调整ul元素滚动到计算出的position
		//$("#focus .btn span").removeClass("on").eq(index).addClass("on"); //为当前的按钮切换到选中的效果
		$("#focus .btn span").stop(true,false).animate({"opacity":"0.4"},300).eq(index).stop(true,false).animate({"opacity":"1"},300); //为当前的按钮切换到选中的效果
	}
});
	 
</script>
<include file="../Public/top_reg" />

<div class="mainbody wrap"><!-- 内容 begin  -->
  	<div id="focus">
	<ul>
	<volist name="ts['ad']['home']" id="vo">
			<li>{$vo['content']}</li>
	</volist>
	</ul>
	</div>
	
	
</div>
<div class="padding10"></div>
<div class="mainbody wrap">
	<div class="boxnoun cf">
<div class="foreign-rec">
			
<h2><span class="greenline size_1"><span class="item-title">今日达人<em>Star</em></span></span></h2>
<div class="bigshow">				
<a target="_blank" href="/profile/33769"><img src="http://static.im20.com.cn/zhimei//index/2012/03/1330658303312.300.300.jpg"></a>
</div>
<div class="taright">
<h3 style="line-height: 1" class="ttname"><a target="_blank" href="/profile/33769"><span style="color:#1D8B74;" class="yahe blue bigtitle">露西亚的早晨</span></a><span title="知美认证达人" class="ctf-icon small-ctf-star-w"></span> 



<a href="javascript:;" follow="false" followed="33769" id="33769" class="hotbutton follow-btn">关注</a>



</h3>
<p><a target="_blank" class="gray" href="/profile/33769">水瓶座，单细胞复合体，一半甜蜜一半忧伤。典型败家女王，迷恋奢侈品大牌。常常在自己的生活里摇摆。被朋友称为是中国版安吉丽娜朱莉。</a></p>
<h3 style="line-height: 1" class="ttname"><span class="yahe">TA的收集</span></h3>
<ul class="cf">

<li><a target="_blank" href="/share/89651"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658431088.60.60.jpg"></a></li>

<li><a target="_blank" href="/share/89659"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658451245.60.60.jpg"></a></li>

<li><a target="_blank" href="/share/89631"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658508382.60.60.jpg"></a></li>

<li><a target="_blank" href="/share/89649"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658621189.60.60.jpg"></a></li>

<li><a target="_blank" href="/share/88539"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658658923.60.60.jpg"></a></li>

<li><a target="_blank" href="/share/88511"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658733724.60.60.jpg"></a></li>

<li><a target="_blank" href="/share/88391"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658758449.60.60.jpg"></a></li>

<li><a target="_blank" href="/share/88289"><img src="http://static.im20.com.cn/zhimei//index/2012/0302/1330658845849.60.60.jpg"></a></li>
					
</ul>
</div>

</div>
<div class="site-rec">
<h2><span class="greenline size_2"><span class="item-title">知美达人</span></span></h2>
<ul>

<li class=" cf">
<div class="uhead"><a target="_blank" href="/profile/15229"><img src="http://static.im20.com.cn/zhimei//20120224/6a73/676b/7164597a/1330069886655.0648.60.60.jpg"></a></div>
<div class="usay">
<p><a target="_blank" class="gray" href="/profile/15229"><b>咸了喝水</b>：抠门金牛座，败家翘楚。擅长用最少的钱买最好的东西。</a></p>
<p>



<a href="javascript:;" follow="false" followed="15229" id="15229" class="hotbutton follow-btn">关注</a>



</p>
</div>
</li>				

<li class=" cf">
<div class="uhead"><a target="_blank" href="/profile/10125"><img src="http://static.im20.com.cn/zhimei//20111117/6873/6a6e/6863597a/1321500273461.5047.60.60.jpg"></a></div>
<div class="usay">
<p><a target="_blank" class="gray" href="/profile/10125"><b>隐蔽的树</b>：闷骚白羊男，爱一切好玩的东西，不想长大的文艺范儿大叔。</a></p>
<p>



<a href="javascript:;" follow="false" followed="10125" id="10125" class="hotbutton follow-btn">关注</a>



</p>
</div>
</li>				

<li class=" cf">
<div class="uhead"><a target="_blank" href="/profile/26927"><img src="http://static.im20.com.cn/zhimei//20120229/6f73/6d6a/6366597a/1330497659946.4925.60.60.jpg"></a></div>
<div class="usay">
<p><a target="_blank" class="gray" href="/profile/26927"><b>毛小糖</b>：具有猫的特质。对败家这件事没有理智，永远败自己最爱的！</a></p>
<p>



<a href="javascript:;" follow="false" followed="26927" id="26927" class="hotbutton follow-btn">关注</a>



</p>
</div>
</li>				

<li class="none cf">
<div class="uhead"><a target="_blank" href="/profile/15481"><img src="http://static.im20.com.cn/zhimei//20120215/6e73/6d65/6769597a/1329289559512.2885.60.60.jpg"></a></div>
<div class="usay">
<p><a target="_blank" class="gray" href="/profile/15481"><b>折腾女王</b>：纯正御姐大妞范儿，一线大牌与白菜价YY完美混搭的典范。</a></p>
<p>



<a href="javascript:;" follow="false" followed="15481" id="15481" class="hotbutton follow-btn">关注</a>



</p>
</div>
</li>				
				
</ul>
</div>
</div>
</div>
<div class="padding10"></div>
<div class="mainbody wrap">

			<volist name="acdisplay"  id="acd">
					<div class="hot-item">
					<h2><span class="greenline size_6"><span class="item-title">{$acd.title}</span></span></h2>
					<ul>
							<php>
							$ac_id=$acd['ac_id'];
							
							$dalei=M('weibo_bc')->where("ac_id = $ac_id")->findall();
							
							foreach($dalei as $s){
		          $sq[]=$s['bc_id'];
		        }
		 $map['bc_id']=array('in',$sq);
							
			$map['type']                  =1;
		$map['transpond_id']          =0;
		$map['isdel']                 =0;				
							
							
							$f=M('weibo')->where($map)->limit(6)->order('ctime DESC')->findAll() ;
							foreach($f as $vs){
							$title=unserialize($vs['type_data']);
							$weibo_id=$vs['weibo_id'];
							$type=$vs['type'];
							</php>
							<li>
							<php>
							if( $type == 1 ){
									$st_arr='<a href='.U('home/Space/detail',array('id' =>''. $weibo_id.'')).' target="_blank"><img class="mycpic" width="'.$title[mwidth].'" height="'.$title[mheight].'" src="__UPLOAD__/'.$title[thumbhaibaourl].'"></a>
									<div class="price"><a target="_blank" href='.U('home/Space/detail',array('id' =>''. $weibo_id.'')).'>复古镂空毛衣</a></div>';
								}else if( $type == 5 ){
									$st_arr='<a href='.U('home/Space/detail',array('id' =>''. $weibo_id.'')).' target="_blank"><img class="mycpic" width="'.$title[mwidth].'" height="'.$title[mheight].'" src="'.$title[middle_pic].'"></a>
									<div class="price cf"><span class="floatright blue">￥'.$title[price].'</span><a target="_blank" href='.U('home/Space/detail',array('id' =>''. $weibo_id.'')).'>复古镂空毛衣</a></div>';
	
								}
							echo $st_arr;
							</php>
							</li>
							<php>
							}
							</php>
								
					</ul>
					</div>
					<div class="clear"></div>
			</volist> 
</div>


<div class="clearfix"></div>
<!-- 内容 end --> 
<include file="__THEME__/footer" /> 